import time
import tkinter
import tkinter.messagebox


def download():
    time.sleep(10)
    tkinter.messagebox.showinfo('提示', '下载完成')


def show_about():
    tkinter.messagebox.showinfo('关于', '作者：CG00')


def main():
    tp = tkinter.Tk()
    tp.title('单线程')
    tp.geometry('200x150')
    tp.wm_attributes('-topmost', True)
    panel = tkinter.Frame(tp)
    button1 = tkinter.Button(panel, text='下载', command=download)




if __name__ == "__main__":
    main()